
package com.insigma.business.qrcode.common._consumer.impl;


import com.insigma.business.qrcode.common.dto.CommonQaInfoDTO;
import com.insigma.business.qrcode.common.dto.CommonQaInfoInsertRequest;
import com.insigma.business.qrcode.common.dto.CommonQaInfoSearchRequest;
import com.insigma.business.qrcode.common.dto.QaResult;
import com.insigma.business.qrcode.common._consumer.CommonQaInfoConsumer;
import com.insigma.business.qrcode.common._provider.CommonQaInfoProvider;
import com.insigma.business.qrcode.common.template.BasePagingResponse;
import com.insigma.business.qrcode.common.vo.BaseDeleteRequest;
import com.insigma.business.qrcode.common.vo.BaseResponse;
import com.insigma.business.qrcode.soldier.request.BaseGetRequest;
import com.insigma.business.qrcode.soldier.request.CommonQaInfoUpdateRequest;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service("commonQaInfoConsumer")
public class CommonQaInfoConsumerImpl implements CommonQaInfoConsumer {

    @Resource
    private CommonQaInfoProvider commonQaInfoProvider;


    @Override
    public BaseResponse<QaResult> intelligentQA(CommonQaInfoSearchRequest searchRequest) {
        return commonQaInfoProvider.intelligentQA(searchRequest);
    }

    @Override
    public BaseResponse<String> evaluateQa(CommonQaInfoUpdateRequest request) {
        return commonQaInfoProvider.evaluateQa(request);
    }

    @Override
    public BasePagingResponse<List<CommonQaInfoDTO>> searchCommonQaInfo(final CommonQaInfoSearchRequest searchRequest) {
        return commonQaInfoProvider.searchCommonQaInfo(searchRequest);
    }


    @Override
    public BaseResponse<CommonQaInfoDTO> getCommonQaInfo(final BaseGetRequest baseGetRequest) {
        return commonQaInfoProvider.getCommonQaInfo(baseGetRequest);
    }

    @Override
    public BaseResponse<String> insertCommonQaInfo(final CommonQaInfoInsertRequest insertRequest) {
        return commonQaInfoProvider.insertCommonQaInfo(insertRequest);
    }

    @Override
    public BaseResponse<Integer> updateCommonQaInfo(final CommonQaInfoUpdateRequest updateRequest) {
        return commonQaInfoProvider.updateCommonQaInfo(updateRequest);
    }


    @Override
    public BaseResponse<Integer> deleteCommonQaInfo(final BaseDeleteRequest deleteRequest) {
        return commonQaInfoProvider.deleteCommonQaInfo(deleteRequest);
    }


}
